package com.jt.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.List;

@Data
@TableName(value = "menu")
public class Menu {
    @TableId
    private String id;

    @TableField(value = "parent")
    private String parent;

    @TableField(exist = false)
    private List<Menu> children;

    @TableField(value = "age")
    private String name;

    @TableField(value = "path")
    private String path;

    @TableField(value = "component")
    private String component;

    @TableField(value = "redirect")
    private String redirect;

    @TableField(value = "hidden")
    private boolean hidden;

    @TableField(exist = false)
    private Meta meta;

    @TableField(value = "icon")
    private String icon;

    @TableField(value = "title")
    private String title;

    @TableField(value = "alwaysShow")
    private boolean alwaysShow;
}
